function trim(val)
 {
	return val.replace(/(\s*$)/g, "");  
}

function delOneNews(val){
  if(window.confirm('确认删除吗？')){
 	  window.location.href='/doTradeReg.do?pkid='+val+'&bpm_id=0399'; 
  } 
}

function submitValues(){
	if(tirm(document.getElementById('key_word').value) == ''){
		alert('请填写关键字！');
		document.getElementById('key_word').focus();
		return false;
	}
	if(document.getElementById('location').value == ''){
		alert('请填写搜索频率！');
		document.getElementById('location').focus();
		return false;
	}
	if(document.getElementById('key_type').value == ''){
		alert('请选择类型！');
		document.getElementById('key_type').focus();
		return false;
	}
}

function check_Value(){
    document.getElementById("proDiv").style.display = 'inline';
    document.getElementById("proDiv").innerHTML='<img src=/program/admin/images/wait.gif border=0 />正在导出，请稍等............';
    var val1 = document.getElementById('key').value;
    var val2 = document.getElementById('type').value;
       $.ajax({
		   type: 'POST',
		   url: 'ajaxCreate.jsp',
		   data: 'key='+val1+'&type='+val2,
		   success: function(msg){
		     document.getElementById('proDiv').innerHTML = msg;
		   }
		}); 

   }
   
    //限制数字全角状态输入 允许中文输入
function   clearSBC(){ 
window.clipboardData.setData( 'text ',clipboardData.getData( 'text ').replace(/[\uFF00-\uFFFF]/g, ' ')) 
}

